import type { RouteRecordRaw } from 'vue-router';

/*
 * @Author: jhw
 * @Date: 2025-08-06 13:29:32
 * @LastEditors: jhw
 * @LastEditTime: 2025-08-22 17:10:30
 * @Description:
 */
export default [
  // 基础组件
  {
    path: 'select-group',
    name: 'select-group',
    redirect: '/materials/select-group/single-select',
    component: () => import('@/views/MaterialsView/SelectGroupView.vue'),
    children: [
      {
        path: 'single-select',
        name: 'single-select',
        component: () => import('@/components/SurveyComs/Materials/SelectComs/SingleSelect.vue'),
      },
      {
        path: 'multiple-select',
        name: 'multiple-select',
        component: () => import('@/components/SurveyComs/Materials/SelectComs/MultipleSelect.vue'),
      },
      {
        path: 'option-select',
        name: 'option-select',
        component: () => import('@/components/SurveyComs/Materials/SelectComs/OptionSelect.vue'),
      },
      {
        path: 'single-pic-select',
        name: 'single-pic-select',
        component: () => import('@/components/SurveyComs/Materials/SelectComs/SinglePicSelect.vue'),
      },
      {
        path: 'text-input',
        name: 'text-input',
        component: () => import('@/components/SurveyComs/Materials/SelectComs/TextInput.vue'),
      },
      {
        path: 'note-desc',
        name: 'note-desc',
        component: () => import('@/components/SurveyComs/Materials/SelectComs/NoteDesc.vue'),
      },
      // 评价/打分
      {
        path: 'personal-info-score',
        name: 'personal-info-score',
        component: () =>
          import('@/components/SurveyComs/Materials/SelectComs/PersonalInfoScore.vue'),
      },
      // 日期/时间
      {
        path: 'date-time',
        name: 'date-time',
        component: () => import('@/components/SurveyComs/Materials/SelectComs/DateTime.vue'),
      },
      // 预设组件
      {
        path: 'personal-info-gender',
        name: 'personal-info-gender',
        component: () => import('@/components/SurveyComs/Materials/SelectComs/SingleSelect.vue'),
      },
      {
        path: 'personal-info-education',
        name: 'personal-info-education',
        component: () => import('@/components/SurveyComs/Materials/SelectComs/SingleSelect.vue'),
      },
    ],
  },
  // 增强组件
  {
    path: 'enhance-group',
    name: 'enhance-group',
    redirect: '/materials/enhance-group/form-group',
    component: () => import('@/views/MaterialsView/EnhanceGroupView.vue'),
    children: [
      {
        path: 'form-group',
        name: 'form-group',
        component: () => import('@/components/SurveyComs/Materials/EnhanceComs/FormGroup.vue'),
      },
      {
        path: 'table-group',
        name: 'table-group',
        component: () => import('@/components/SurveyComs/Materials/SelectComs/MultipleSelect.vue'),
      },
    ],
  },
] as RouteRecordRaw[];
